/**
 * 播放初始化导览
 */
export const playInitAnimation = async (type = AnimationType.Initialization) => {
  const res: any = await fdapi.camera.getAnimationList()
  const nameArr = ['初始化1', '地形初始化']
  const obj = res.data.filter((item: any) => item.name == nameArr[type])
  await fdapi.camera.playAnimation(obj[0].id)
}

/**
 * 导览名字枚举
 */
export enum AnimationType {
  /**
   * 城市孪生 初始化
   */
  Initialization = 0,
  /**
   * 地形初始化
   */
  TerrainInitialization = 1
}
